package cn.edu.nsmc.modules.sys.service;

import cn.edu.nsmc.common.utils.R;
import cn.edu.nsmc.modules.sys.entity.SysWorksheetTemplate;
import cn.edu.nsmc.modules.sys.form.WorksheetTemplateList;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface SysWorksheetTemplateService {
    R getWorksheetTemplateList(WorksheetTemplateList worksheetTemplateList);

    R addWorksheetTemplate(SysWorksheetTemplate sysWorksheetTemplate);

    R updatedWorksheetTemplate(SysWorksheetTemplate sysWorksheetTemplate);

    R deleteWorksheetTemplateByIds(String [] ids);

    List<SysWorksheetTemplate> getList();

    SysWorksheetTemplate getById(Integer templateId);

    R onlinePreview(String path, HttpServletResponse response)throws Exception;

    void download(String filename, HttpServletResponse response) throws IOException;

    R selectById(Long id);
}
